UO API v1.1
Individual Raw Sensor Data
Sensor Data
https://newcastle.urbanobservatory.ac.uk/api/v1.1/sensors/{sensor_name}/data/xlsx/
Parameters
Time Slice
Last n days
Selects Data from the last n days
Field | Format | Example |
last_n_days |
Integer |
3 |
Start & End Times
Time slice for which data in queried
Field | Format | Example |
starttime |
strftime "%Y%m%d%H%M%S" or "%Y%m%d" (http://strftime.org/) |
20150101 |
endtime |
strftime "%Y%m%d%H%M%S" or "%Y%m%d" (http://strftime.org/) |
20160101 |
Data
Data Variable
Variables to retrieve data for
Field | Format | Example |
data_variable |
Text |
Temperature |
Example Use
https://newcastle.urbanobservatory.ac.uk/api/v1.1/sensors/PER_BEE_54610/data/xlsx/?starttime=20180117&endtime=20180118